package com.smartscreen.homeschoolconnection.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Map;

@Data
public class MessageInfo {
    private String messageId;
    private String type;
    private String title;
    private String content;
    private Boolean isRead;
    
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss'Z'")
    private LocalDateTime sentAt;
    
    private Map<String, Object> related;
}